<!DOCTYPE html>
<!--
项目模板
复制部分需要改以下内容：

页面标题 line 13

左侧菜单高亮提示 line 255: 添加 class="active"

右上面包屑导航栏内容 line 300:
-->
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>智汇信息</title>
  <!-- 自适应宽度 -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.7 -->
  <link rel="stylesheet" href="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://cdn.bootcss.com/ionicons/2.0.0/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="https://cdn.bootcss.com/admin-lte/2.4.5/css/AdminLTE.min.css">
  <!-- 皮肤颜色，需要继续修改 body 标签的 class 属性才可以生效 -->
  <link rel="stylesheet" href="https://cdn.bootcss.com/admin-lte/2.4.5/css/skins/skin-blue.min.css">

  <!-- HTML5 Shim和Respond.js IE8支持HTML5元素和媒体查询 (HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries) -->
  <!-- 警告:  以 file:// 方式查看时，返回的 js 不生效-->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->

  <!-- Google 字体 -->
  <link rel="stylesheet"
        href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<!--
BODY 标签选项:
=================
可以添加一个或多个
|-----------------------------------------------------------|
| 皮肤           | skin-blue              蓝                |
|               | skin-black              黑                |
|               | skin-purple             紫                |
|               | skin-yellow             黄                |
|               | skin-red                红                |
|               | skin-green              绿                |
|---------------------------------------------------------|
|布局选项        | fixed                   固定            |
|               | layout-boxed            盒子            |
|               | layout-top-nav          顶部导航        |
|               | sidebar-collapse        折叠            |
|               | sidebar-mini            迷你            |
|---------------------------------------------------------|
-->
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

  <!-- 主 头部 -->
  <header class="main-header">

    <!-- Logo -->
    <a href="/index" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>智</b>汇</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>智汇</b>信息</span>
    </a>

    <!-- Header Navbar 点击可以折叠-->
    <nav class="navbar navbar-static-top" role="navigation">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>
      <!-- Navbar Right Menu 右侧菜单-->
      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <!-- 消息: 样式在 dropdown.less  [指bootstrap/less/dropdown.less-->
          <li class="dropdown messages-menu"><!-- dropdown messages-menu open代表打开 -->
            <!-- Menu toggle button -->
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="fa fa-bell-o"></i>
              <span class="label label-success" th:text="${session.unreadMessage}?${session.unreadMessage.num}:''"></span>
            </a>
            <ul class="dropdown-menu">
              <li class="header">您有 <font th:text="${session.unreadMessage}?${session.unreadMessage.num}:'0'"></font> 条未读信息</li>
              <li>
                <!-- inner menu: contains the messages -->
                <ul class="menu" th:remove="${session.unreadMessage}?'none':'all'">
                  <li th:each="msg : ${session.unreadMessage.messages}"><!-- start message -->
                    <a th:href="'/message/detail?msgid=' + ${msg.id}" >
                      <div class="pull-left">
                        <!-- 发送人的头像 Image -->
                        <img th:src="${msg.sender.headImage}?${msg.sender.headImage}:'/AdminLTE/dist/img/user2-160x160.jpg'" class="img-circle" alt="User Image">
                      </div>
                      <!-- Message title and timestamp -->
                      <h4 th:text="${msg.sender.realname}?${msg.sender.nickname} + ' ( ' + ${msg.sender.realname} + ' )':'匿名'">
                        昵称( 真实姓名 )
                        <small ><i class="fa fa-clock-o"></i> 5 分钟</small>
                      </h4>
                      <!-- The message -->
                      <p th:text="${msg.content}">消息内容</p>
                    </a>
                  </li>
                  <!-- end message -->
                </ul>
                <!-- /.menu -->
              </li>
              <li class="footer"><a href="/message/all">查看所有消息</a></li>
            </ul>
          </li>
          <!-- /.消息菜单 -->

          <!-- 提醒菜单 -->
          <li class="dropdown notifications-menu" th:remove="all">
            <!-- Menu toggle button -->
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="fa fa-bell-o"></i>
              <span class="label label-warning" th:text="${session.unreadMessage}?${session.unreadMessage.num}:''"></span>
            </a>
            <ul class="dropdown-menu">
                <li class="header"> 当前 <font th:text="${session.unreadMessage}?${session.unreadMessage.num}:'0'"></font> 条提醒</li>
              <li>
                <!-- Inner Menu: contains the notifications -->
                <ul class="menu" th:remove="${session.unreadMessage}?'none':'all'">
                  <li th:each="msg : ${session.unreadMessage.messages}"><!-- start notification -->
                    <a th:href="'/message/detail?msgid=' + ${msg.id}" th:text="${msg.content}">
                      <i class="fa fa-users text-aqua"></i> 提醒内容
                    </a>
                  </li>
                  <!-- end notification -->
                </ul>
              </li>
              <li class="footer"><a href="/message/all">查看所有提醒</a></li>
            </ul>
          </li>


          <!-- User Account Menu 账号菜单-->
          <li class="dropdown user user-menu">
            <!-- Menu Toggle Button -->
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <!-- The user image in the navbar-->
              <img th:src="${session.user}?${session.user.headImage}:'/AdminLTE/dist/img/user2-160x160.jpg'" class="user-image" alt="User Image">
              <!-- hidden-xs hides the username on small devices so only the image appears. -->
              <span class="hidden-xs" th:text="${session.user}?${session.user.nickname}:'昵称'">用户名</span>
            </a>
            <ul class="dropdown-menu">
              <!-- The user image in the menu -->
              <li class="user-header">
                <img th:src="${session.user}?${session.user.headImage}:'/AdminLTE/dist/img/user2-160x160.jpg'" class="img-circle" alt="User Image">

                <p th:text="${session.user}?${session.user.nickname} + ' - ' + ${session.user.realname}:'昵称 - 真实姓名'">
                  昵称
                  <small>个性的签名（暂未开放）</small>
                </p>
              </li>
              <!-- Menu Body -->
              <li class="user-body">
                <div class="row">
                  <div class="col-xs-4 text-center">
                    <a href="/collect/my">收集表</a>
                  </div>
                  <div class="col-xs-4 text-center">
                    <a href="/group/my">我的组</a>
                  </div>
                </div>
                <!-- /.row -->
              </li>
              <!-- Menu Footer-->
              <li class="user-footer">
                <div class="pull-left">
                  <a href="/user/profile" class="btn btn-default btn-flat">个人信息</a>
                </div>
                <div class="pull-right">
                  <a href="/user/logout.action" class="btn btn-default btn-flat">退出登录</a>
                </div>
              </li>
            </ul>
          </li>

          <!-- Control Sidebar Toggle Button 侧边栏的开关-->
          <li>
            <a href="#" data-toggle="control-sidebar"><i class="fa fa-line-chart"></i></a>
          </li>

        </ul>
      </div>
    </nav>
  </header>

  <!-- 左侧菜单，包含logo、搜索、菜单-->
  <aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

      <!-- 左侧用户面板 (optional) -->
      <div class="user-panel">
        <div class="pull-left image">
          <img th:src="${session.user}?${session.user.headImage}:'/AdminLTE/dist/img/user2-160x160.jpg'" class="img-circle" alt="头像">
        </div>
        <div class="pull-left info">
          <p th:text="${session.user}?${session.user.nickname}:'昵称'">用户名</p>
          <!-- Status -->
          <a href="#"><i class="fa fa-circle text-success"></i><span th:text="${session.user}?'在线':'离线'"></span></a>
        </div>
      </div>

      <!-- 搜索 form (Optional) -->
      <form action="/search" method="get" class="sidebar-form">
        <div class="input-group">
          <input type="text" name="q" class="form-control" placeholder="搜索...">
          <span class="input-group-btn">
              <button type="submit" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
              </button>
            </span>
        </div>
      </form>
      <!-- /.search form -->

      <!-- 左侧边栏 菜单 -->
      <ul class="sidebar-menu" data-widget="tree">
        <li class="header">菜单</li>
        <!-- Optionally, you can add icons to the links -->

        <li><a href="/index"><i class="fa fa-edit"></i> <span>待参与</span></a></li>

        <li class="treeview">
          <a href="#"><i class="fa fa-table"></i> <span>信息收集</span>
            <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/collect/new">发起收集</a></li>
            <li><a href="/collect/my">我发起的</a></li>
            <li><a href="/collect/filled">我参与的</a></li>
          </ul>
        </li>

        <li class="treeview">
          <a href="#"><i class="fa fa-envelope"></i> <span>消息</span>
            <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/message/unread">未读消息</a></li>
            <li><a href="/message/all">全部消息</a></li>
            <li><a href="/message/settings">消息设置</a></li>
          </ul>
        </li>

        <li class="treeview">
          <a href="#"><i class="fa fa-user"></i> <span>个人中心</span>
            <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/user/profile">编辑资料</a></li>
            <li><a href="/user/changepasswd">修改密码</a></li>
          </ul>
        </li>


        <li><a href="/group"><i class="fa fa-group"></i> <span>我的组</span></a></li>

        <li><a href="/settings"><i class="fa fa-gear"></i> <span>设置</span></a></li>

      </ul>
      <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. 页面内容 -->
  <div class="content-wrapper">
    <!-- 页面头部  -->
    <section class="content-header">
      <h1>
        待参与
        <small>需要我参与的信息收集</small>
      </h1>
      <!-- 导航栏 -->
      <ol class="breadcrumb">
          <li><a href="/index"><i class="fa fa-dashboard"></i> 主页</a></li>
        <li class="active">待参与</li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content container-fluid">

      <!--------------------------
        |      页面内容放在这      |
        -------------------------->




    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  <!-- 页脚 -->
  <footer class="main-footer">
    <!-- To the right -->
    <div class="pull-right hidden-xs">
      Version 0.0.1
    </div>
    <!-- Default to the left -->
    <strong>Copyright &copy; 2019 <a href="#">智汇信息</a>.</strong>
  </footer>

  <!-- Control Sidebar 右侧边栏 -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Create the tabs 该部分包含两个面板-->
    <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
      <!-- 第一个板块 ，图标为 i 标签-->
      <li class="active"></li>
    </ul>
    <!-- Tab panes -->
    <div class="tab-content">
      <!-- Home tab content 示例-->
      <div class="tab-pane active" id="control-sidebar-home-tab">
        <h3 class="control-sidebar-heading">近期收集</h3>
        <ul class="control-sidebar-menu" th:remove="${session.recentCollect}?'none':'all'">
          <li th:each="table : ${session.recentCollect.collects}">
            <a th:href="'/collect/my/detail?id=' + ${table.id}">
              <!-- 图标 -->
              <i class="menu-icon fa fa-table bg-red"></i>
              <!-- 介绍 -->
              <div class="menu-info">
                <h4 class="control-sidebar-subheading" th:text="${table.name}">
                  <span class="pull-right-container">
                    <span class="label label-danger pull-right" th:text="${table.state}">收集中</span>
                </span>
                </h4>

                <p th:text="${#dates.format(table.endTime, 'MM-dd 截止')}">10 月 16 日</p>
              </div>
            </a>
          </li>
        </ul>
        <!-- /.control-sidebar-menu 项1结束 -->


        <!-- /.control-sidebar-menu 项2结束 -->
      </div>
    </div>
  </aside>
  <!-- /.control-sidebar -->
  <!-- 右侧边栏的背景，必须紧接着control sidebar放这个  -->
  <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->

<!-- Js 脚本 -->

<!-- jQuery 3 -->
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="https://cdn.bootcss.com/admin-lte/2.4.5/js/adminlte.min.js"></script>

<!-- 提示, 推荐添加 Slimscroll (好看的滚动条) 和 FastClick (绕过浏览器的 300ms 延时) 插件。
    这两个插件有助于提升用户体验 -->
</body>
</html>